﻿using Colover.Infrastructure;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Colover.Models
{
	/// <summary>
	/// Category information.
	/// </summary>
    public partial class CategoryInfo : NotificationObject
    {
        public CategoryInfo() { }

        #region Fields
        private int id;
        private string title;
        private string description;
        private bool showtopublic = true;
        #endregion

        #region Properties
		/// <summary>
		/// Gets or sets the identifier.
		/// </summary>
		/// <value>The identifier.</value>
        public int Id
        {
            get { return id; }
            set
            {
                id = value;
                RaisePropertyChanged(() => Id);
            }
        }

		/// <summary>
		/// Gets or sets the title.
		/// </summary>
		/// <value>The title.</value>
        public string Title
        {
            get { return title; }
            set
            {
                title = value;
                RaisePropertyChanged(() => Title);
            }
        }

		/// <summary>
		/// Gets or sets the description.
		/// </summary>
		/// <value>The description.</value>
        public string Description
        {
            get { return description; }
            set
            {
                description = value;
                RaisePropertyChanged(() => Description);
            }
        }

		/// <summary>
		/// Gets or sets a value indicating whether this <see cref="Colover.Models.CategoryInfo"/> show to public.
		/// </summary>
		/// <value><c>true</c> if show to public; otherwise, <c>false</c>.</value>
        public bool ShowToPublic
        {
            get { return showtopublic; }
            set
            {
                showtopublic = value;
                RaisePropertyChanged(() => ShowToPublic);
            }
        }
        #endregion
    }
}
